﻿using Microsoft.AspNetCore.Authorization;
using Quickly.Identity.Domain;

namespace Quickly.Identity.Policies
{
    public class AllowRoleAdministrator 
    {
        public const string PolicyName = "AdministratorOnly";

        public static IAuthorizeData[] AuthorizeDatas => [AuthorizeData.FromRoles(QuickIdentityRoleNames.Administrator)];
    }
}
